<?php
namespace app\common\model\tyyh;

class UserAddress extends CUBase {
	protected $append = ['sex_text'];
	protected $privacyFields = ['sex', 'createtime', 'updatetime'];

	public function getSexTextAttr($value, $data) {
		$options = loadEnum('Sex')->get_options();
		return isset($options[$data['sex']]) ? $options[$data['sex']] : '';
	}
}